<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>Title</title>
</head>
<style>
    .tv{
        width: 600px;
        height: 300px;
        perspective: 250px;
        border: 1px solid #ccc;
        overflow: hidden;
    }
    .cube{
        width: 400px;
        height: 400px;
        position: absolute;
        transform-style: preserve-3d;
        transform: translateZ(-400px);
        animation:s 3s linear infinite;
    }
    .side{
        opacity: 0.4;
        width: 100%;
        height: 100%;
        position: absolute;
        font-size: 150px;
        text-align: center;
    }
    .top{
        background: #85bae4;
        transform: rotateX(-90deg) translateZ(-200px);
    }
    .bottom{
        background: #cc9a9a;
        transform: rotateX(90deg) translateZ(-200px);
    }
    .left{
        background: #1f6377;
        transform: rotateY(90deg) translateZ(-200px);
    }
    .right{
        background: #1f6377;
        transform: rotateY(-90deg) translateZ(-200px);
    }
    .front{
        background: #9c2f06;
        transform: rotateY(180deg) translateZ(-200px);
    }
    .back{
        background: #2a323f;
        transform:  translateZ(-200px);
    }
    @keyframes s{
        0%{transform: translateZ(-400px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);}
        100%{transform: translateZ(-400px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);}
    }
</style>
<body>
<a href="index.html">作业一</a>
<a href="demo.html">作业二</a>
<a href="temp.html">作业三</a>
<div class="tv">
    <div class="cube">
        <div class="side top">TOP</div>
        <div class="side bottom">BOT</div>
        <div class="side left">LEF</div>
        <div class="side right">RIG</div>
        <div class="side front">FRO</div>
        <div class="side back">BAC</div>
    </div>
</div>
</body>
</html>